package com.zjwd.system.service.impl;

import com.zjwd.system.domain.SysLogLogin;
import com.zjwd.system.mapper.SysLogLoginMapper;
import com.zjwd.system.service.ISysLogLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 系统访问日志情况信息 服务层处理
 *
 * @author liquan
 */
@Service
public class SysLogLoginServiceImpl implements ISysLogLoginService {

    @Autowired
    private SysLogLoginMapper logLoginMapperMapper;

    /**
     * 新增系统登录日志
     *
     * @param logLogin 访问日志对象
     */
    @Override
    public void insert(SysLogLogin logLogin) {
        logLoginMapperMapper.insert(logLogin);
    }

    /**
     * 查询系统登录日志集合
     *
     * @param logLogin 访问日志对象
     * @return 登录记录集合
     */
    @Override
    public List<SysLogLogin> selectList(SysLogLogin logLogin) {
        return logLoginMapperMapper.selectList(logLogin);
    }

    /**
     * 批量删除系统登录日志
     *
     * @param infoIds 需要删除的登录日志ID
     * @return 结果
     */
    @Override
    public int deleteByIds(Long[] infoIds) {
        return logLoginMapperMapper.deleteByIds(infoIds);
    }

    /**
     * 清空系统登录日志
     */
    @Override
    public void clean() {
        logLoginMapperMapper.clean();
    }
}
